package com.xxbb.chapter_7.dome3;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import com.xxbb.util.tool.Tool;

public class Program {
	public static void main(String[] args) {
		//hasMap
		Map<String, String> map=new HashMap<String, String>();
		map.put("1", "张三");
		map.put("2", "李四");
		map.put("1", "王五");
		map.put("3", "张三");
		Set<String> set=map.keySet();
		Iterator<String> iterator=set.iterator();
		while (iterator.hasNext()) {
			Tool.print(iterator.next());
			String key=iterator.next();
			Tool.print(map.get(key));
		}
		
	}
}
